package com.example.tms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("project")
public class Project {
    @TableId(value = "pro_id", type = IdType.AUTO) // 主键映射
    private Integer id;
    @TableField("leader_id") // 负责人ID
    private Integer leaderId;
    @TableField("project_name") // 项目名称
    private String name;
    @TableField("start_date")   // 开始日期
    private String startDate;
    @TableField("end_date")   // 结束日期
    private String endDate;
    @TableField("created_at")   // 创建时间
    private String createdAt;
    @TableField("updated_at")   // 更新时间
    private String updatedAt;
    @TableLogic
    @TableField("is_deleted")   // 是否删除
    private Boolean isDeleted;
    @TableField("state")   // 项目状态
    private String status;
    @TableField("description")   // 描述
    private String description;

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Integer leaderId) {
        this.leaderId = leaderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
